<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="<%= window.location.href %>">超级黑白名单配置</a>
            </li>
        </ol>
    </div>
</header>
<section id="content">

    <div class="panel">
        <div class="section mb15">
            <table class="table" id="confTable">
                <thead>
                    <th>uid</th>
                    <th>次数</th>
                    <th>概率</th>
                    <th>持续时间(秒)</th>
                    <th>操作</th>
                </thead>
                <tbody class="debugTbody">
                    <% _.each(s_list, function(v){ %>
                    <tr>
                        <% 
                            var uid = v["uid"]; 
                            var ttl = v["ttl"];
                            var ratio = v["ratio"];
                            var times = v["times"];
                        %>
                        <td>
                            <input type="number" min="0" class="form-control" value="<%= uid %>" required>
                        </td>
                        <td>
                            <input type="number" placeholder="调控次数" min="1" class="form-control" value="<%= times %>" required>
                        </td>
                        <td>
                            <input type="number" step=0.01 placeholder="调控概率" min="0.01" class="form-control" value="<%= ratio %>" required>
                        </td>
                        <td>
                            <input type="number" placeholder="调控时间，单位秒" min="1" class="form-control" value="<%= ttl %>" required>
                        </td>
                        <td>
                            <a class="glyphicons glyphicons-remove_2 onClickDeleteDebug" href="javascript:;"></a>
                            <a class="glyphicons glyphicon-ok onClickSaveDebug" href="javascript:;"></a>
                        </td>
                    </tr>
                    <% }) %>
                </tbody>
            </table>
            <ol class="breadcrumb">
                <li class="crumb-active">
                    <button class="btn btn-primary btn-sm light fw600 ml10 " type="button" id="addDebug">新增</button>
                    <div class="topbar-right">
                        <select id="game" name="game">
                            <option value="bull" <%= options.game == 'bull' ? 'selected' : '' %>>百人牛牛</option>
                        </select>
                        <select id="direction" name="direction">
                            <option value="white" <%= options.direction == 'white' ? 'selected' : '' %>>白名单</option>
                            <option value="black" <%= options.direction == 'black' ? 'selected' : '' %>>黑名单</option>
                        </select>
                    </div>
                </li>
            </ol>
        </div>
    </div>
</section>
